package com.sanpu.kxe.business.trade.contract;

import android.text.TextWatcher;

import com.sanpu.kxe.base.IBaseExtraView;
import com.sanpu.kxe.base.IBasePresenter;
import com.sanpu.kxe.business.card.bean.BankInfoOutput;

import java.math.BigDecimal;
import java.util.List;

/**
 * Description：提现
 * Created by 薛勇军 on 2018/8/9.
 */

public interface WithdrawContract {

    interface View extends IBaseExtraView<Presenter> {

        /**
         * 显示储蓄卡
         */
        void showDepositBanks(List<BankInfoOutput> outputs);

        /**
         * 提现手续费
         */
        void showTxRemarkView(String txRemark);

        /**
         * 余额
         */
        void showBalanceView(BigDecimal balance, BigDecimal txFee);

        /**
         * 设置输入金额
         */
        void setInputMoney(String inputMoney);

        /**
         * 获取输入金额
         */
        CharSequence getInputMoney();

        /**
         * comfirm验证正确
         */
        void onRightCallBack();
    }

    interface Presenter extends IBasePresenter {

        /**
         * 初始化数据
         */
        void initViewData(String withdrawMoney);

        /**
         * 获取所有的储蓄卡
         */
        void getDepositBanks();

        /**
         * 提现
         */
        void withdraw(String inputMoney, String payPwd, String bankId);

        /**
         * 确定按钮点击
         */
        void onComfirmClick(BankInfoOutput output, String inputMoney);

        TextWatcher getTextWatcher();
    }
}
